<template>
  <div>
    <h1>登录页面(⁎⁍̴̛ᴗ⁍̴̛⁎)</h1>
    <el-row>
      <el-button>默认按钮</el-button>
      <el-button type="primary">主要按钮</el-button>
      <el-button type="success">成功按钮</el-button>
      <el-button type="info">信息按钮</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row><hr>
    <el-button @click="giteeLogin" type="primary">gitee登录</el-button>
    <el-button @click="oauth2Login" type="success">oauth2登录</el-button>
  </div>
</template>

<script>
export default {
  name: "LoginView",
  data(){
    return{

    }
  },methods:{
    oauth2Login(){
      this.axios.post("http://localhost:8003/api/tb-user/getLoginUrl").then(res=>{
        window.open(res.data);
      })
    },giteeLogin(){
      window.open("https://gitee.com/oauth/authorize?client_id=fa1b5ee31282113af3e32f739c85a46f8d94880634e1a9f71b29155bd087e66e&redirect_uri=http://localhost:8080/callback&response_type=code")
    }
  },created() {

  }
}
</script>

<style scoped>

</style>